fitcrit

USAGE: fitcrit infile outimg [-l FIT_LENGTH] [-r CORNER_ARC] [-c] [-L]

fitcrit fits straight lines between critical points
(curvature maxima) in the segments of pixel chains;
corners are located at the location of intersection of their
two boundary lines; curves are located by two straight lines
drawn from curve onsets (transition points) to the middle
point in the arc of the curve.

ARGUMENTS:
    infile: input filename (PCC)
    outimg: input image filename (TIF)

OPTIONS:
  -l FIT_LENGTH: is the arc-length of the fit along the data
                 segments; the longer is this length, the greater is
                 smoothing, but the less ability to fit small features;
                 this is usually chosen as the minimum arc-length between
                 critical points on the data.
                 (default = 13 [connected pixels]. minimum is 5.)
  -r CORNER_ARC: maximum arc-length of a corner; since a
                 corner feature will usually be rounded, there is a maximum
                 arc-length before over which that feature is considered
                 a curve and not a corner. (default = 3 [connected pixels].
             -c: when set, prints out the (x,y) coordinates of the
                 straight-line fits between critical points.
             -L: print Software License for this module
 
 

Example:

fitcrit spiralN.pcc spiralNFC.tif -l 5

spiralN.pcc:

Binary file (not displayable)

spiralNFC.tif:

spiralN.tif:

Copyright (C) 1999 MLMSoftware Group, LLC.